package rig.com.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Rig
 * @create 2021/9/23 15:43
 **/
@Data
@ToString
@Accessors(chain = true)
@TableName("activity")
public class ActivityDTO implements Serializable {

    public static final long serialVersionUID = 8841433872811285796L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "activity_name")
    private String activityName;

    @TableField(value = "start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @TableField(value = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "stock")
    private Integer stock;

    @TableField(value = "is_only")
    private Integer only;
}
